<?php exit;?>{* Template Name:列表页普通文章 *}
<li class="single-mode">
	<div class="thumb">
		<a href="{$article.Url}" title="链接到 {$article.Title}">
			{if isset(Thumb::Thumbs([$article->Metas->listimg], 150, 115, 1, true)[0])}
				{php}$src=Thumb::Thumbs([$article->Metas->listimg], 150, 115, 1, true)[0];{/php}
				<img src="{$src}" alt="{$article.Title}" />
			{elseif isset($article.Thumbs(150,115,1)[0])}
				<img src="{$article.Thumbs(150,115,1)[0]}" alt="{$article.Title}" />
			{else}
				{php}
					$randimg=rand(1,5);
					$src = $host.'zb_users/theme/San_Rabbit/style/img/'.$randimg.'.jpg';
					$src = Thumb::Thumbs([$src], 150, 115, 1, true)[0];
				{/php}
				<img src="{$src}" alt="{$article.Title}" />	
			{/if}
		</a>
	</div>
	<div class="info">
		<div class="info-limit">
			<h3> 
				<a href="{$article.Url}" title="链接到 {$article.Title}">
					{$article.Title}
				</a>
			</h3>
			{php}$description = preg_replace('/[\r\n\s]+/', ' ', trim(SubStrUTF8(TransferHTML($article->Intro,'[nohtml]'),81)).'...');{/php}
			<p class="desc">
				{$description}
			</p>
		</div>
		<div class="meta">
			<div class="tags">
				<a href="{$article.Category.Url}" title="链接到 {$article.Category.Name}">{$article.Category.Name}</a>
				{if $article.Tags}
					{php}$i = 0;{/php}
					{foreach $article.Tags as $key=>$tag}
						{if $i==2}
							{php}break;{/php}
						{/if}
						<a target="_blank" class="metetag" href="{$tag.Url}" rel="tag">{$tag.Name}</a>
						{php}$i++;{/php}		
					{/foreach}
				{/if}
			</div>
			<div class="time" title="{$article.Time('Y年m月d日 H:i:s')}"><i class="iconfont icon-shijian2"></i>{$article.Time('Y年m月d日')}</div>
			<a class="comment-topic" href="{$article.Url}"><i class="iconfont icon-pinglun5"></i>{$article.CommNums}</a>
			<a class="search-topic" href="{$article.Url}"><i class="iconfont icon-chakan1"></i>{$article.ViewNums}</a>
		</div>
	</div>
</li>
